<?php
/**
 * Created by PhpStorm.
 * User: mf
 * Date: 2017/9/11
 * Time: 10:31
 */
namespace app\admin\controller;

use app\admin\logic\Cat as LogicCat;
use tool\Common;
use think\Request;

class Cat extends Base
{
    //谦程网络添加商品二级分类
    public function addType()
    {
        /*$data = [
            'parentID' => '11',
            'name' => '对讲机'
        ];*/
        $data = Request::instance()->post();
        $type = new LogicCat();
        $res = $type->init($data)->addType();
        Common::json($res);
    }
}